class DataPictures < ActiveRecord::Migration
  def self.up
    # Vidage préalable de la table 
    down  
    # Création des pays
    Picture.create (:title => 'Vue des toits', :description => 'Superbe photo prise depuis un toit', :extension => 'jpg', :user_id => '2')
    Picture.create (:title => 'Maison', :description => 'Splendide batisse', :extension => 'jpg', :user_id => '2')
    Picture.create (:title => 'Ville', :description => 'Ville très agréable', :extension => 'jpg', :user_id => '2')
    Picture.create (:title => 'Rivière', :description => 'Femme allant chercher de l eau', :extension => 'jpg', :user_id => '2')
    Picture.create (:title => 'Vue aérienne', :description => 'Photo prise depuis l hélicoptère', :extension => 'jpg', :user_id => '2')
    Picture.create (:title => 'Dublin de nuit', :description => 'Rive gauche de liffe', :extension => 'jpg', :user_id => '2')
    Picture.create (:title => 'Mont', :description => 'Vert de chez vert', :extension => 'jpg', :user_id => '2')
    Picture.create (:title => 'Château', :description => 'MacFish', :extension => 'jpg', :user_id => '2')
    Picture.create (:title => 'Balade', :description => 'La plage et la tranquilité', :extension => 'jpg', :user_id => '2')
    Picture.create (:title => 'Moutons', :description => 'Mhéééééé Mhééééééééé', :extension => 'jpg', :user_id => '2')
    Picture.create (:title => 'Château', :description => 'Château en ruine', :extension => 'jpg', :user_id => '2')
    Picture.create (:title => 'Cliff of Moher', :description => 'Yahooooo', :extension => 'jpg', :user_id => '2')
    Picture.create (:title => 'Logo des jeux', :description => 'Superbe', :extension => 'gif', :user_id => '3')
    Picture.create (:title => 'Monument', :description => 'Superbe', :extension => 'jpg', :user_id => '3')
    Picture.create (:title => 'Stade olympique', :description => 'Superbe', :extension => 'jpg', :user_id => '3')
    Picture.create (:title => 'Chutte', :description => 'Superbe', :extension => 'jpg', :user_id => '3')
    Picture.create (:title => 'Acropole', :description => 'Superbe', :extension => 'jpg', :user_id => '3')
    Picture.create (:title => 'Arc de Triomphe', :description => 'Superbe', :extension => 'jpg', :user_id => '3')
    Picture.create (:title => 'Madeleine', :description => 'Une église', :extension => 'jpg', :user_id => '2')
    Picture.create (:title => 'Car', :description => 'Superbe', :extension => 'jpg', :user_id => '2')
    Picture.create (:title => 'Boxeur', :description => 'Superbe', :extension => 'jpg', :user_id => '2')
    Picture.create (:title => 'Sacré Coeur', :description => 'Superbe', :extension => 'jpg', :user_id => '2')
  end

  def self.down
    # Vidage de la table
    Picture.delete_all 
  end
end
